<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>发货提醒</title>
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/page.css">
    <script src="../js/jquery-3.2.1.min.js"></script>
    <script src="../js/media.js"></script>
    <script src="../js/common.js"></script>
    <style>

    </style>
</head>

<body>
    <!--头部-->
    <!-- <div class="public-header flex">
        <span class="public-header-left-search"></span>
        <span class="public-header-left-back"></span>
        <span class="public-header-center">发货提醒</span>
        <span class="public-header-right"></span>
    </div> -->

    <!--正文-->
    <div class="system-notification bc-gray">
        <ul>
            <!-- <li class="clearfix">
                <div class="left">
                    <img src="../img/系统通知@2x.png" alt="">
                </div>
                <div class="right">
                    <p class="p1">发货提醒</p>
                    <p class="p2">07.05 12:30</p>
                    <p class="p3">您投诉的『XXXXXX』 已有处理结果</p>
                </div>
            </li> -->
        </ul>
    </div>

    <script>
        window.onload = function () {
            $('.password').on('input', function () {
                var v = $(this).val();
                var l = v.length;
                if (l == 6) {
                    $(this).blur();
                }
            })

            $.ajax({
                url: base_url + 'ZITAOHUI/selectremindsellers',
                data: {
                    user_id: u_id
                },
                success: (data) => {
                    console.log(data)
                    let datas = data.extend.list;
                    let time = new Date(data.extend.time);
                    data.extend.time = time.getMonth()+'-'+time.getDate()+' '+time.getHours()+':'+time.getMonth()
                   
                    for(let i=0;i<datas.length;i++){
                        let li = $(' <li class="clearfix"><div class="left"><img src="../img/系统通知@2x.png" alt=""></div></li>')
                        let div = $(' <div class="right"><p class="p1">发货提醒</p><p class="p2">'+data.extend.time+'</p><p class="p3">订单'+ datas[i].order_num +'提醒你发货</p></div>')
                        li.append(div);
                        $('.system-notification ul').append(li)
                    }
                }
            })
        }
    </script>



</body>

</html>